﻿#region Assembly Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll, v4.0.30319
// C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll
#endregion

using System;
using System.Runtime.Serialization;

namespace Microsoft.VisualStudio.TestTools.UnitTesting
{
	// Summary:
	//     Used to indicate failure for a test.
	[Serializable]
	public class AssertFailedException : UnitTestAssertException
	{
		// Summary:
		//     Initializes a new instance of the Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException
		//     class.
		public AssertFailedException() { }
		//
		// Summary:
		//     Initializes a new instance of the Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException
		//     class that uses with a specified error message.
		//
		// Parameters:
		//   msg:
		//     The message that describes the error.
		public AssertFailedException(string msg) : base(msg) { }
		//
		// Summary:
		//     Initializes a new instance of the Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException
		//     class with serialized data.
		//
		// Parameters:
		//   info:
		//     The System.Runtime.Serialization.SerializationInfo that holds the serialized
		//     object data about the exception being thrown.
		//
		//   context:
		//     The System.Runtime.Serialization.StreamingContext that contains contextual
		//     information about the source or destination.
		//
		// Exceptions:
		//   System.ArgumentNullException:
		//     info is null.
		//
		//   System.Runtime.Serialization.SerializationException:
		//     The class name is null or HResult is zero (0).
		protected AssertFailedException(SerializationInfo info, StreamingContext context) : base(info, context) { }
		//
		// Summary:
		//     Initializes a new instance of the Microsoft.VisualStudio.TestTools.UnitTesting.AssertFailedException
		//     class with a specified error message and a reference to the inner exception
		//     that is the cause of this exception.
		//
		// Parameters:
		//   msg:
		//     The error message that explains the reason for the exception.
		//
		//   ex:
		//     The exception that is the cause of the current exception. If the ex parameter
		//     is not null, the current exception is raised in a catch block that handles
		//     the inner exception.
		public AssertFailedException(string msg, Exception ex) : base(msg, ex)
		{

		}
	}
}
